package com.vf.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.vf.activity.mapper.ActivityAttendanceMapper;
import com.vf.activity.domain.ActivityAttendance;
import com.vf.activity.service.IActivityAttendanceService;

/**
 * 活动考勤Service业务层处理
 * 
 * @author LBS
 * @date 2025-06-04
 */
@Service
public class ActivityAttendanceServiceImpl implements IActivityAttendanceService 
{
    @Autowired
    private ActivityAttendanceMapper activityAttendanceMapper;

    /**
     * 查询活动考勤
     * 
     * @param attendanceId 活动考勤主键
     * @return 活动考勤
     */
    @Override
    public ActivityAttendance selectActivityAttendanceByAttendanceId(Long attendanceId)
    {
        return activityAttendanceMapper.selectActivityAttendanceByAttendanceId(attendanceId);
    }

    /**
     * 查询活动考勤列表
     * 
     * @param activityAttendance 活动考勤
     * @return 活动考勤
     */
    @Override
    public List<ActivityAttendance> selectActivityAttendanceList(ActivityAttendance activityAttendance)
    {
        return activityAttendanceMapper.selectActivityAttendanceList(activityAttendance);
    }

    /**
     * 新增活动考勤
     * 
     * @param activityAttendance 活动考勤
     * @return 结果
     */
    @Override
    public int insertActivityAttendance(ActivityAttendance activityAttendance)
    {
        return activityAttendanceMapper.insertActivityAttendance(activityAttendance);
    }

    /**
     * 修改活动考勤
     * 
     * @param activityAttendance 活动考勤
     * @return 结果
     */
    @Override
    public int updateActivityAttendance(ActivityAttendance activityAttendance)
    {
        return activityAttendanceMapper.updateActivityAttendance(activityAttendance);
    }

    /**
     * 批量删除活动考勤
     * 
     * @param attendanceIds 需要删除的活动考勤主键
     * @return 结果
     */
    @Override
    public int deleteActivityAttendanceByAttendanceIds(Long[] attendanceIds)
    {
        return activityAttendanceMapper.deleteActivityAttendanceByAttendanceIds(attendanceIds);
    }

    /**
     * 删除活动考勤信息
     * 
     * @param attendanceId 活动考勤主键
     * @return 结果
     */
    @Override
    public int deleteActivityAttendanceByAttendanceId(Long attendanceId)
    {
        return activityAttendanceMapper.deleteActivityAttendanceByAttendanceId(attendanceId);
    }
}
